<%@ page language="java"  pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>药品收款明细</title>
	<script src=" ../../js/jquery-3.3.1.js"   type="text/javascript" charset="utf-8"></script>
	<link rel="stylesheet" href="../../css/bootstrap.css" type="text/css" />
	<script src="../../js/bootstrap.js" type="text/javascript" charset="utf-8"></script>
	<style>
		* {
				margin: 0 auto;
				padding: 0;
			}
		
			#a {
				width: 1000px;
				height: 800px;
				background-image: url(../../img/2.jpg);
				background-size: 100% 100%;
				background-repeat: no-repeat;
				color: white;
			}
		.table{
			height: 300px;
			display: inline-block;
			margin-top: 20px;
			margin-left: 350px;
			border: none;
		}
		th,td{
			text-align: center;
		}
		input{
			color: #000000;
			width:50%;
		}
		h1{
			color: white;
			display: inline-block;
			margin-top: 20px;
			margin-left: 250px;
			text-align: center;
			font-weight: 500;
			letter-spacing:50px;
		}
		#b{
			display: inline-block;
			width: 400px;
			margin-top: 50px;
			margin-left: 100px;
		}
		a{
			display: inline-block;
			margin-left: 800px;
			
		}
		a:link,a:visited{
			text-decoration: none;
			color: white;
		}
		a:hover{
			font-size: larger;
		}
		
		
	</style>
</head>
<body>
       <div id="a">
       <div class="form-group" id="b">
       	<label for="name">患者姓名</label>
       	<input type="text"  class="form-group" id="name" value="${user.name}"><br />
       	<label for="idCard">身份证号</label>
       	<input type="text"  class="form-group" id="idCard" value="${user.idCard}"><br />
       	<label for="age">年&nbsp;&nbsp;&nbsp;&nbsp;龄&nbsp;&nbsp;&nbsp;</label>
       	<input type="text"  class="form-group" id="age" value="${user.age}"><br />
       	<label for="gender">性&nbsp;&nbsp;&nbsp;&nbsp;别&nbsp;&nbsp;&nbsp;</label>
       	<input type="text"  class="form-group" id="gender" value="${user.gender}"><br />
       	<label for="sum">应&nbsp;付&nbsp;款&nbsp;</label>
       	<input type="text"  class="form-group" id="sum" value="${sum}">元<br />
       	<label for="money">实&nbsp;付&nbsp;款&nbsp;</label>
       	<input type="text"  class="form-group" id="money" name="money">元
       </div> 
       <h1>药品收款明细</h1>
           <table class="table table-bordered">
               <tr>
                   <th>序号</th>
                   <th>药品名称</th>
                   <th>单价</th>
                   <th>数量</th>
                   <th>总价</th>
               </tr>
               <c:forEach items="${bills}" var="bill" varStatus="status">
                   <tr>
                       <td>${status.index+1}</td>
                       <td>${bill.dname}</td>
                       <td>${bill.sprice}</td>
                       <td>${bill.pnum}</td>
                       <td>${bill.sum}</td>
                   </tr>
       	
               </c:forEach>
           </table>
           <a href="/user/logout">确认收款</a>
       	</div>
</body>
</html>